#include <stdio.h>

int Cal(int a,int b, char op)
{
	if(op == '+')
		return a+b;
	if(op == '-')
		return a-b;
	if(op == '*')
		return a*b;
	if(op == '/'  && b != 0)
		return a/b;
	if(op != '+' or '-' or '*' or '/')
		printf("Invalid operator!");
	if(op == '/' && b ==0)
		printf("Divided by zero!");
}

int main()
{
	int a,b,d;
	char c;
	scanf("%d %d %c",&a,&b,&c);
	d=Cal(a,b,c);
	printf("%d",d);
	return 0;
}
